GBML manual / Audio

music_stop

Stops music AT ONCE, no fade.

Syntax

music_stop()

Returns

Nothing.

Description

Stops music at once, with no fade - the abrupt counterpart to music_fade_to(nothing-equivalent, ...)'s fade-to-silence. Reach for this only where an instant cut is actually the right effect (a pause menu that wants silence immediately, say); anywhere a smoother change is wanted, fade to silence instead.

Example

music_stop();

Cuts music immediately, with no fade out.

On the GBA

A no-op while nothing is currently playing (already stopped, or nothing was ever started) - the same ordinary no-op every music_* setter in this table has for that case, nothing special about music_stop itself.

See also: music_playmusic_fade_to